package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_AllocateCancelDetail", catalog="Id")
public class TccAllocateCancelDetail extends BaseEntity<TccAllocateCancelDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BidAllocateCancel", nameJava="bidAllocateCancel", typeDataBase="varchar")
	private String bidAllocateCancel;
	@YsField(nameDataBase="AllocateDetailId", nameJava="allocateDetailId", typeDataBase="bigint")
	private Long allocateDetailId;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccAllocateCancelDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBidAllocateCancel() {
		return bidAllocateCancel;
	}
	public TccAllocateCancelDetail setBidAllocateCancel(String bidAllocateCancel) {
		this.bidAllocateCancel = bidAllocateCancel;
		return this;
	}
	public Long getAllocateDetailId() {
		return allocateDetailId;
	}
	public TccAllocateCancelDetail setAllocateDetailId(Long allocateDetailId) {
		this.allocateDetailId = allocateDetailId;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TccAllocateCancelDetail setNum(Integer num) {
		this.num = num;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccAllocateCancelDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccAllocateCancelDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccAllocateCancelDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccAllocateCancelDetail tccAllocateCancelDetail(
		String bidAllocateCancel,
		Long allocateDetailId,
		Integer num,
		Integer status
			) {
		TccAllocateCancelDetail entity = new TccAllocateCancelDetail();
		entity.setBidAllocateCancel(bidAllocateCancel);
		entity.setAllocateDetailId(allocateDetailId);
		entity.setNum(num);
		entity.setStatus(status);
		return entity;
	}
}